<include file="Public:basehead" />
<script>
	function checkAll(form, name) {
		for (var i = 0; i < form.elements.length; i++) {
			var e = form.elements[i];
			if (e.name.match(name)) {
				e.checked = form.elements['chkall'].checked;
			}
		}
	}
</script>
<div id="{cms>:MODULE_NAME}" class="content {cms>:MODULE_NAME}">
	<div class="cLineB">
		<h4 class="left">
			临时二维码<span class="FAQ">当前状态： 已建立{cms>:$totalLimitCount}条 生效中{cms>:$usableLimitCount}条 失效{cms>:$failedLimitCount}条</span>
		</h4>
		<div class="clr"></div>
	</div>
	<div class="cLine">
		<div class="pageNavigator left">
			<a href="{cms>:U('QrCode/limitadd')}" class="btnGrayS vm bigbtn">创建单个临时二维码</a>
			<a href="{cms>:U('QrCode/limitfaileddel')}" class="btnGrayS vm bigbtn">清空失效临时二维码</a>
		</div>
		<div class="clr"></div>
	</div>
	<div class="msgWrap">
		<form method="post" action="" id="info">
			<table class="ListProduct" border="0" cellSpaceing="0" cellPadding="0" width="100%">
				<thead>
					<tr>
						<th>二维码用途</th>
						<th>创建时间/结束时间</th>
						<th>二维码访问次数</th>
						<th>状态</th>
						<th class="norightborder">操作</th>
					</tr>
				</thead>
				<tbody>
					<volist id="limitlist" name="limitlist">
						<tr>
							<td>{cms>$qtype[$limitlist['typeid']]}</td>
							<td>{cms>$limitlist.create_time|date='Y-m-d H:i:s',###}<br/>{cms>$limitlist.end_time|date='Y-m-d H:i:s',###}</td>
							<td>{cms>$limitlist.accesscount}</td>
							<td>
								<if condition="$limitlist['status'] eq 0"><span class="FAQ">已失效</span><elseif
									condition="$limitlist['status'] eq 1"/>生效中</if>
							</td>
							<td class="norightborder">
								<if condition="$limitlist['status'] eq 1">
									<a href="{cms>:U('QrCode/detail',array('id'=>$limitlist['cms_id']))}">查看</a>
									<a href="{cms>:U('QrCode/limitedit',array('id'=>$limitlist['id']))}">编辑</a>
								</if>
								<a href="{cms>:U('QrCode/limitdel',array('id'=>$limitlist['id']))}">删除</a>
						</tr>
					</volist>
				</tbody>
			</table>
		</form>
	</div>

	<div class="cLine">
		<div class="pageNavigator right">
			<div class="pages">{cms>$pagelimit}</div>
		</div>
		<div class="clr"></div>
	</div>
	

	<div class="cLineB">
		<h4 class="left">
			永久二维码<span class="FAQ">当前状态： {cms>:$listInfo}</span>
		</h4>
		<div class="clr"></div>
	</div>

	<div class="cLine">
		<div class="cLineC" style="line-height: 32px;">
			<a href="{cms>:U('QrCode/unlimitadd')}" class="btnGrayS vm bigbtn">创建单个永久二维码</a>
			<!--  
			<a href="{cms>:U('QrCode/unlimitlistadd')}" class="btnGrayS vm bigbtn">批量创建永久二维码</a>
			-->
			<a href="{cms>:U('QrCode/unlimitlistsearch')}" class="btnGrayS vm bigbtn">按用途关键词搜二维码</a> 
		</div>
		<div class="clr"></div>
	</div>
	
		<div class="msgWrap">
		<form method="post" action="" id="info">
			<table class="ListProduct" border="0" cellSpaceing="0" cellPadding="0" width="100%">
				<thead>
					<tr>
						<th>二维码用途</th>
						<th>创建时间</th>
						<th>二维码访问次数</th>
						<th class="norightborder">操作</th>
					</tr>
				</thead>
				<tbody>
					<volist id="unlimitlist" name="unlimitlist">
						<tr>
							<td>{cms>$unlimitlist.info}</td>
							<td>{cms>$unlimitlist.create_time|date='Y-m-d H:i:s',###}</td>
							<td>{cms>$unlimitlist.accesscount}</td>
							<td class="norightborder">
								<a href="{cms>:U('QrCode/detail',array('id'=>$unlimitlist['cms_id']))}">查看</a>
								<a href="{cms>:U('QrCode/unlimitedit',array('id'=>$unlimitlist['id']))}">编辑</a>
								<a href="{cms>:U('QrCode/unlimitdel',array('id'=>$unlimitlist['id']))}">删除</a>
						</tr>
					</volist>
				</tbody>
			</table>
		</form>
	</div>

	<div class="cLine">
		<div class="pageNavigator right">
			<div class="pages">{cms>$pageunlimit}</div>
		</div>
		<div class="clr"></div>
	</div>
</div>

<div class="clr"></div>
<include file="Public:footer" />